
package bundle;

import java.util.Calendar;
import java.util.Locale;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.e885.log.E885Logger;

/**
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class BundleTester
{
	public BundleTester()
	{
		ApplicationContext context = new ClassPathXmlApplicationContext( "bundle/bundle.xml" );

		Object[] arguments = new Object[]
			{ "高清萬", Calendar.getInstance().getTime() };

		E885Logger.testLog.debug( "en_US:" + context.getMessage( "userLogin", arguments, Locale.US ) );
		E885Logger.testLog.debug( "zh_TW:" + context.getMessage( "userLogin", arguments, Locale.TAIWAN ) );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		new BundleTester();
	}

}
